package com.caldremch.dao;

import com.caldremch.User;

/**
 * Created by Caldremch on Mac 2017/2/21 22:18.
 */
public interface UserDao {


    /**
     * 根据id查询用户信息
     * @param id
     * @return
     * @throws Exception
     */
    public User findUserById(int id) throws Exception;


    public User findUserByName(int id) throws Exception;

    /**
     * 添加用户信息
     * @param user
     * @return User
     * @throws Exception
     */
    public void inserUser(User user) throws Exception;

    /**
     * 删除用户
     * @param id
     * @return
     * @throws Exception
     */
    public void deleteUser(int id) throws Exception;



}
